package tmt.usercenter.web.domain.enums;

import com.tmt.annotation.EnumDescriptor;
import com.tmt.annotation.parser.EnumAnnotationParser;

public enum SmStatus {

    @EnumDescriptor(title="未发送", description = "尚未发送")
    NOT_SEND,

    @EnumDescriptor(title="发送中", description = "正在发送")
    SENDING,

    @EnumDescriptor(title="发送失败", description = "发送失败")
    SEND_FAILURE,

    @EnumDescriptor(title="发送成功", description = "发送成功")
    SEND_SUCCESS;

    public static SmStatus from(String title) {
        return EnumAnnotationParser.convertFromTitle(SmStatus.class, title);
    }

}
